#if !defined(AFX_PARTPAVIEW_H__F5E1566C_CC17_47D0_B0A4_7F3813BF97C4__INCLUDED_)
#define AFX_PARTPAVIEW_H__F5E1566C_CC17_47D0_B0A4_7F3813BF97C4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PartPAView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPartPAView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

#include "PartPA.h"
#include "PHSSHARERES.h"
#include "FormViewEx.h"

class CPartPAView : public CFormViewEx
{
protected:
	CPartPAView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CPartPAView)

public:
	void LinkToObject(PartPA* pPA){
		m_pObject = pPA;
	}

// Form Data
public:
	//{{AFX_DATA(CPartPAView)
	enum { IDD = IDD_PART_PA };
	CString	m_strCustomID;
	CString	m_strName;
	CString	m_strMaterial;
	CString	m_strPipeDia;
	CString	m_strSpec;
	CString	m_strDim;
	CString	m_strLoad;
	CString	m_strTemperature;
	CString	m_strWeight;
	CString	m_strClgg;
	//}}AFX_DATA
private:
	void LoadBH();
	void LoadMeterial();
	void LoadSpec();
	void UpdateObjectData(BOOL bIsSaveAndValidate = TRUE);

private:
	void LoadOthers();
	BOOL m_bIsFirstProcess;
	PartPA* m_pObject;
	PartPA* m_pPart;

public:
	CString m_strPATable;
	CString m_strObservation;
// Attributes
public:

// Operations
public:
	void loadDia();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPartPAView)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CPartPAView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CPartPAView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnChangeLoadEdit();
	afx_msg void OnChangeTemperatureEdit();
	afx_msg void OnKillfocusTemperatureEdit();
	afx_msg void OnKillfocusLoadEdit();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnSelchangePipediaCombo();
	afx_msg void OnSelchangeSpecCombo();
	afx_msg void OnSelchangeMaterialCombo();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PARTPAVIEW_H__F5E1566C_CC17_47D0_B0A4_7F3813BF97C4__INCLUDED_)
